/**
 * 场景内模型显示控制插件
 * @param {场景} scene 
 * @param {显示标识符 boolean} tag 
 */
export function FlameControl(scene,tag){
  scene.traverse(function(obj){
    if (obj.type === "Mesh"&&obj.name.indexOf('flame')!=-1) {
      obj.material.visible = tag
    }
  })
}
export function CameraControl(scene,tag){
  scene.traverse(function(obj){
    if (obj.type === "Mesh"&&obj.name.indexOf('camera')!=-1) {
      obj.material.visible = tag
    }
  })
}
export function DoorControl(scene,tag){
  scene.traverse(function(obj){
    if (obj.type === "Mesh"&&obj.name.indexOf('door')!=-1) {
      obj.material.visible = tag
    }
  })
}
